package algorithm.leetcode.testcase;

public class TestPlusPlus {

    int index = 0;

    public void printPP(boolean isFirstPP) {
        if (isFirstPP) {
            System.out.println(++index);
            System.out.println(index);
        } else {
            System.out.println(index++);
            System.out.println(index);
        }
    }

    public void initial() {
        index = 0;
    }

    public static void main(String[] args) {
        TestPlusPlus tpp = new TestPlusPlus();
        tpp.printPP(true);
        tpp.initial();
        tpp.printPP(false);

    }
}
